<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel common\models\kingdee\HrFolkSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = Yii::t('kingdee', 'Hr Folks');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="hr-folk-index">

    <h1><?= Html::encode($this->title) ?></h1>
    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

    <p>
        <?= Html::a(Yii::t('app', 'Create Hr Folk'), ['create'], ['class' => 'btn btn-success']) ?>
    </p>
    <?= GridView::widget([
        'tableOptions' => ['class' => 'table table-condensed table-bordered table-striped table-hover'],
        'pager' => [
//            'class'          => GoPager::className(),
            'nextPageLabel' => '下一页',
            'prevPageLabel' => '上一页',
            'firstPageLabel' => '首页',
            'lastPageLabel' => '末页',
            'options' => [
                'class' => 'pagination pagination-sm m-t-none m-b-none',
            ],
        ],
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            [
                'class' => 'yii\grid\SerialColumn',
                'contentOptions' => ['class' => 'vertical-middle text-center', 'style' => 'width: 25px;'],
            ],

//            'FID',
//            'FNAME_L1',
//            'FNAME_L2',
            [
                'label' => Yii::t('app', 'Name'),
                'attribute' => 'FNAME_L2',
                'headerOptions' => ['class' => 'vertical-middle text-center', 'style' => 'width: 150px;'],
                'contentOptions' => ['class' => 'vertical-middle text-center', 'style' => 'width: 150px;'],
            ],
//            'FNAME_L3',
            [
                'label' => Yii::t('app', 'Alias Name'),
                'attribute' => 'FNAME_L3',
                'headerOptions' => ['class' => 'vertical-middle text-center', 'style' => 'width: 150px;'],
                'contentOptions' => ['class' => 'vertical-middle text-center', 'style' => 'width: 150px;'],
            ],
//            'FNUMBER',
            [
                'label' => Yii::t('app', 'Number'),
                'attribute' => 'FNUMBER',
                'headerOptions' => ['class' => 'vertical-middle text-center', 'style' => 'width: 150px;'],
                'contentOptions' => ['class' => 'vertical-middle text-center', 'style' => 'width: 150px;'],
            ],
            // 'FDESCRIPTION_L1',
            // 'FDESCRIPTION_L2',
            // 'FDESCRIPTION_L3',
            // 'FSIMPLENAME',
            // 'FINDEX',
            // 'FCREATORID',
            // 'FCREATETIME',
            // 'FLASTUPDATEUSERID',
            // 'FLASTUPDATETIME',
            // 'FCONTROLUNITID',
//             'FSTATE',
            [
                'label' => Yii::t('app', 'State'),
                'attribute' => 'FSTATE',
                'headerOptions' => ['class' => 'vertical-middle text-center', 'style' => 'width: 50px;'],
                'contentOptions' => ['class' => 'vertical-middle text-center', 'style' => 'width: 50px;'],
            ],
            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>
</div>
